package com.yth.extension;

import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.CommandLineRunner;
import org.springframework.core.annotation.Order;

import java.util.Arrays;

/**
 * <p>整个项目启动完毕之后</p>
 * 如果与多个CommandLineRunner则可以用@Order设定顺序
 *
 * @author yutianhong
 * @version 1.0
 * @since 2023/09/05 15:49
 */
@Slf4j
@Order(200)
public class MyCommandLineRunner implements CommandLineRunner {
    @Override
    public void run(String... args) throws Exception {
        log.info("[CommandLineRunner::run] \t>>> args: {}", Arrays.toString(args));
    }
}
